'use strict';
const uniPush = uniCloud.getPushManager({appId:""}) //注意这里需要传入你的应用appId
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	let {clientid,title,content,url} = event.queryStringParameters;
	return await uniPush.sendMessage({
			"push_clientid": clientid,	
			"title": title,	
			"content": content,
			"force_notification": true,
			"payload": {
				"url":url
			}
		})
	
};
